//
//  HidModel.h
//  Item A House
//
//  Created by 甄奇文 on 15/5/26.
//  Copyright (c) 2015年 lanou3g.com 蓝鸥科技. All rights reserved.
//

#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
@protocol HidModelDelegate <NSObject>

- (void)connectFinished:(NSData *)data;

@end

@interface HidModel : NSObject<NSURLConnectionDataDelegate>

@property (nonatomic, assign) id<HidModelDelegate>delegate;
@property (nonatomic, copy) NSString *requestUrl;
@property (nonatomic, retain) NSMutableData *receiveData;
- (void)startConnection:(NSString *)str parmaters:(NSDictionary *)parmaters;

+ (HidModel *)connectWithUrl:(NSString *)url delegate:(id<HidModelDelegate>)delegate parmaters:(NSDictionary *)parmaters;

@end

